<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1">
    <title></title>
    <{insert_scripts files="./js/jquery.min.js,swfobject.js,jquery.uploadify.v2.1.4.min.js"}>
    <link href="./css/style.css" rel="stylesheet" type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body>
  <form name="form1" method="post"  id="form1" action="/index.php?c=admin&a=others&mod=accessories&act=save">      
        <div class="box">
            <div class="box2">
                <table border="0" cellpadding="0" cellspacing="0">
                    <tr>
                        <th style="border-bottom: #cccccc 1px solid;">
                            全站漂浮文字(我们的观点)：</th>
                        <td>
                            <textarea name="t_1" id="t_1" style="height: 60px;
                                width: 320px;"><{if $res.25}><{$res.25}><{/if}></textarea>
                        </td>
                    </tr>
                    <tr>
                        <th style="border-bottom: #cccccc 1px solid;">
                            资质荣誉：</th>
                        <td>
                            <textarea name="t_2" id="t_2" style="height: 60px;
                                width: 320px;"><{if $res.26}><{$res.26}><{/if}></textarea>
                        </td>
                    </tr>                    
                    <tr>
                        <th style="border-bottom: #cccccc 1px solid;">
                            3P+企业空间解决方案：</th>
                        <td>
                            <textarea name="t_3" id="t_3" style="height: 60px;
                                width: 320px;"><{if $res.27}><{$res.27}><{/if}></textarea>
                        </td>
                    </tr>
                        <tr>
                        <th style="border-bottom: #cccccc 1px solid;">
                            资讯热线：</th>
                        <td>
                            <textarea name="t_4" id="t_4" style="height: 60px;
                                width: 320px;"><{if $res.28}><{$res.28}><{/if}></textarea>
                        </td>
                    </tr>
                    </tr>
                        <tr>
                        <th style="border-bottom: #cccccc 1px solid;">
                            后街简介：</th>
                        <td>
                            <textarea name="t_5" id="t_5" style="height: 60px;
                                width: 320px;"><{if $res.29}><{$res.29}><{/if}></textarea>
                        </td>
                    </tr>                    
                    <tr id="thumbDiv"  >
          <th style="border-bottom: #cccccc 1px solid"><br />
           后街简介(下载内容)： </th>
          <td><div  id="image_input_holder" >
              <input  name="accessories" id="accessories" type="text"  style="width:320px;" value="<{if $res.30}><{$res.30}><{/if}>" readonly="readonly"/>
            </div>
            <div id="uploadbtn" style="width:680px; height:40px;"><span id="btn_main" style="display:block; width:120px; height:30px; float:left; margin-top:10px;">
              <input id="file_upload" type="file" name="file_upload" />
              </span><span id="btn_dis" style=" display:block;margin-top:10px; float:left; line-height:30px; padding-left:20px; "><{if $res.30}><font color=red>[提示：文件已经存在,如需修改点击选择，上传后保存]</font><{else}>【提示:非必须，推荐文章请上传图片后点击推荐按钮;图片尺寸请控制为70px*70px】<{/if}></span></div></td>
        </tr> 
                </table>
            </div>
        </div>
        <p style="padding: 15px; text-align: center;">
            <input type="submit" name="Button1" value="保存" id="Button1" class="add" style="font-weight: bold;
                width: 70px;" /></p>
    </form>
 <script type="text/javascript">
 $(function(){
 $('#file_upload').uploadify({
    'uploader'  : './include/uploadify/uploadify.swf',
    'script'    : './upload.php/2:0:0:0',
    'cancelImg' : './include/uploadify/cancel.png',
    'folder'    : './upload/images/',
	'fileExt'   : '*.doc;*.docx;*.xls;*.xlsx;*.xls;*.ppt;*.zip;*.rar;*.gz;*.bz2',
	'fileDesc'    : '（*.doc;*.docx;*.xls;*.xlsx;*.xls;*.ppt;*.zip;*.rar;*.gz;*.bz2）',
	'buttonImg' : './include/uploadify/button.jpg',
	'sizeLimit'   : 1024000,
    'auto'      :  true,
  	'onComplete'  : function(event, ID, fileObj, response, data) {
		if(response.match(/\/upload\//)){
			$("#accessories").val(response.match(/\/upload\/(.+)/g));
			$("#btn_dis").html("<font color=red>[提示：文件已经成功上传，请勿修改上面文本框中的链接]</font>");
			$("#image_input_holder").show();
		}else{
			alert(response);
		}
    },
	  'onError'     : function (event,ID,fileObj,errorObj) {
      //alert(errorObj.type + ' 错误: ' + errorObj.info);
    }
	
  });	
});	
 </script>
</body>
</html>
